# $NetBSD: Makefile,v 1.2 2012/10/03 09:10:44 asau Exp $
#

DISTNAME=	lucene-3.0.2
CATEGORIES=	textproc java
MASTER_SITES=	http://apache.cyberuse.com/lucene/java/
EXTRACT_SUFX=	.zip

MAINTAINER=	kamelderouiche@yahoo.com
HOMEPAGE=	https://lucene.apache.org/
COMMENT=	Full-text search engine for Java
LICENSE=	apache-2.0

NO_BUILD=	yes
USE_TOOLS+=	pax
USE_LANGUAGES=	# none
AUTO_MKDIRS=	yes
USE_JAVA=	yes
USE_JAVA2=	yes

PKG_JVMS_ACCEPTED=	sun-jdk7

do-install:
	${INSTALL_DATA} ${WRKSRC}/*.jar ${DESTDIR}${PREFIX}/lib/java/lucene
	${INSTALL_DATA} ${WRKSRC}/*.war ${DESTDIR}${PREFIX}/lib/java/lucene
	cd ${WRKSRC}/lib && pax -rw -pp . ${DESTDIR}${PREFIX}/lib/java/lucene/lib
	cd ${WRKSRC}/contrib && pax -rw -pp . ${DESTDIR}${PREFIX}/lib/java/lucene/contrib
	${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/lib/java/lucene
	cd ${WRKSRC}/docs && pax -rw -pm * ${DESTDIR}${PREFIX}/share/doc/lucene

.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
